package com.colin.aiyi.dao.ImpxUtils;

import com.colin.aiyi.app.Constant;
import com.colin.aiyi.entity.response.LoginResponse;

import org.xutils.http.RequestParams;

/**
 * Created by hl on 2017/6/9.
 */

public class ImpDoCommint extends AbsServicexUtils {
    @Override
    public void onSuccess(String result) {
        super.onSuccess(result);
        LoginResponse loginResponse=gson.fromJson(result,LoginResponse.class);
        if (callback==null)
        {
            sendMsgToView(loginResponse);
        }else {
            callback.onSuccess(loginResponse);
        }
    }

    @Override
    public <V> void getObject(V v) {
        super.getObject(v);
        RequestParams params=new RequestParams(Constant.SAY_commentList);
        params.addBodyParameter("sayId", (String) v);
        sendToServer(params);
    }
}
